package com.lywz.biz.common.entity.city;

import static javax.persistence.GenerationType.IDENTITY;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

import com.lywz.core.entity.EntityAnnotation;

/**
 * TCityEntertainment entity. @author MyEclipse Persistence Tools
 */
@Entity
@NamedQueries({
@NamedQuery(name="city.entertainmentList",query="from CityEntertainment ce order by ce.cityId"), 
@NamedQuery(name="city.entertainmentByCityId",query="from CityEntertainment ce where ce.cityId= :cityId")
})
@Table(name = "T_City_Entertainment", catalog = "db_GZTour")
@EntityAnnotation
public class CityEntertainment implements java.io.Serializable {
 
    private static final long serialVersionUID = -2012620647784543856L;
    // Fields    
    //数据库自增id
    private Integer id;
    //所属城市id
    private Short cityId;
    //所属城市name
    private String cityName;
    //城市娱乐总体描述
    private String sumDescription;
    //民间戏曲
    private String theaterDescription;
    //城市夜生活
    private String nightlifeDescription;
    //城市休闲
    private String leisureDescription;

    // Constructors

    /** default constructor */
    public CityEntertainment() {
    }

    /** full constructor */
    public CityEntertainment(Short cityId, String cityName, String sumDescription,
            String theaterDescription, String nightlifeDescription, String leisureDescription) {
        this.cityId = cityId;
        this.cityName = cityName;
        this.sumDescription = sumDescription;
        this.theaterDescription = theaterDescription;
        this.nightlifeDescription = nightlifeDescription;
        this.leisureDescription = leisureDescription;
    }

    // Property accessors
    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "id", unique = true, nullable = false)
    public Integer getId() {
        return this.id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Column(name = "city_id", nullable = false)
    public Short getCityId() {
        return this.cityId;
    }

    public void setCityId(Short cityId) {
        this.cityId = cityId;
    }

    @Column(name = "city_name", nullable = false, length = 30)
    public String getCityName() {
        return this.cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    @Column(name = "sum_description", nullable = false, length = 1000)
    public String getSumDescription() {
        return this.sumDescription;
    }

    public void setSumDescription(String sumDescription) {
        this.sumDescription = sumDescription;
    }

    @Column(name = "theater_description", nullable = false, length = 1000)
    public String getTheaterDescription() {
        return this.theaterDescription;
    }

    public void setTheaterDescription(String theaterDescription) {
        this.theaterDescription = theaterDescription;
    }

    @Column(name = "nightlife_description", nullable = false, length = 1000)
    public String getNightlifeDescription() {
        return this.nightlifeDescription;
    }

    public void setNightlifeDescription(String nightlifeDescription) {
        this.nightlifeDescription = nightlifeDescription;
    }

    @Column(name = "leisure_description", nullable = false, length = 1000)
    public String getLeisureDescription() {
        return this.leisureDescription;
    }

    public void setLeisureDescription(String leisureDescription) {
        this.leisureDescription = leisureDescription;
    }

}
